โ– humdrum codex / glint v1.0.2
license AGPL-3.0
1.2 KB raw
id
TASK-030
title
CLI export flag -e / --export to HTML
status
๐Ÿ Done
assignee
created_date
2026-06-30 05:13
updated_date
2026-06-30 05:31
labels
feature
dependencies
priority
medium
ordinal
29000

Description

Like -p (preview), add -e / --export [file] to export a named markdown file straight to printable house-style HTML from the command line โ€” headless, no TUI. Mirrors Ctrl+E: render via export.Write, open in browser, print the output path, exit. Requires a file arg.

Acceptance Criteria

Implementation Notes

main.go -e/--export standalone command โ†’ App.ExportFile(path): writeExport (read+export.Write, no browser) then OpenInBrowser best-effort; prints output path; errors if no file. Extracted shared exportOptions (Ctrl+E reuses it). README usage + help document -e. 2 app tests green.